package com.moon.back.controller;


import cn.dev33.satoken.util.SaResult;
import com.moon.back.entity.Req.FileCommandReq;
import com.moon.back.service.HanLpService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Api( "文件智能操作")
@CrossOrigin
@RestController
@RequestMapping("/intelligence")
public class FileCommandHandlerController {

    @Resource
    private HanLpService hanLpService;
    @ApiOperation( "文件查询")
    @PostMapping("/input")
    public SaResult hanLpInput( @RequestBody FileCommandReq req) {
        return  hanLpService.HanLpInput(req.getText());
    }

}
